﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace MagicalDesktop.Simulation
{
    public class Group : NotifyPropertyChanged
    {
        public string Name { get; set; }
        [XmlIgnore]
        public User[] Users { get; set; }
        [XmlIgnore]
        public User[] OnlineUsers
        {
            get
            {
                return Users.Where(u => u.IsOnline).ToArray();
            }
        }
        [XmlIgnore]
        public User[] OfflineUsers
        {
            get
            {
                return Users.Where(u => !u.IsOnline).ToArray();
            }
        }
    }
}
